//
//  HomePageModel.m
//  qiuShiJiangHu
//
//  Created by xalo on 16/1/23.
//  Copyright © 2016年 糗事江湖项目组. All rights reserved.
//

#import "HomePageModel.h"

@implementation HomePageModel


-(void)setValue:(id)value forKey:(NSString *)key
{
    [super setValue:value forKey:key];
    
    if ([key isEqualToString:@"id"]) {
        
        self.Id = [value integerValue];
        
    }
    if ([key isEqualToString:@"user"]) {
        
        self.icon = value[@"icon"];
        
        self.login = value[@"login"];
    }

//    if ([key isEqualToString:@"votes"]) {
//        
//        self.down = (NSInteger)value[@"down"];
//        
//        self.up = (NSInteger)value[@"up"];
//        
//    }

    
}


-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    //nothing

}









@end
